<script type='text/javascript'>
	function update() {
		app.post('/services/personal', {
			name         : $('#name').val(),
			company         : $('#company').val(),
			workDescription : $('#workDescription').val(),
			phone        : $('#phone').val(),
			email        : $('#email').val(),
			address      : $('#address').val(),
			irdNumber    : $('#irdNumber').val(),
			bank         : $('#bank').val(),
			bankAccountName   : $('#bankAccountName').val(),
			bankNumber   : $('#bankNumber').val(),
			bankBranch   : $('#bankBranch').val()
		},function(result){
			if(result == 'ok') {
				alert('saved');
			}
			else{
				alert(result);
			}
		});
	}
	$(document).ready(function(){
	});

</script>

<div id='menu'>

</div>

<div id='content'>

	<h1>personal</h1>
	
	<fieldset>
		<div class='field-row'>
			<label>name</label>
			<input type='text' id='name'  value='{{personal.name}}' />
		</div>			
			<div class='field-row'>
			<label>company</label>
			<input type='text' id='company'  value='{{personal.company}}' />
		</div>		
			<div class='field-row'>
			<label>work description</label>
			<textarea id='workDescription'>{{personal.workDescription}}</textarea>
		</div>		
		<div class='field-row'>
			<label>phone</label>
			<input type='text' id='phone'  value='{{personal.phone}}' />
		</div>	
		<div class='field-row'>
			<label>email</label>
			<input type='text' id='email' value='{{personal.email}}' />
		</div>
		<div class='field-row'>
			<label>address</label>
			<textarea id='address'>{{personal.address}}</textarea>
		</div>
		<div class='field-row'>
			<label>ird number</label>
			<input type='text' id='irdNumber' value='{{personal.irdNumber}}' />
		</div>
		<div class='field-row'>
			<label>bank</label>
			<input type='text' id='bank'  value='{{personal.bank}}'/> 
		</div>
		<div class='field-row'>
			<label>bank account name</label>
			<input type='text' id='bankAccountName'  value='{{personal.bankAccountName}}'/> 
		</div>
		<div class='field-row'>
			<label>bank number</label>
			<input type='text' id='bankNumber'  value='{{personal.bankNumber}}'/> 
		</div>
		<div class='field-row'>
			<label>bank branch</label>
			<input type='text' id='bankBranch'  value='{{personal.bankBranch}}' />
		</div>
		<div class='field-row'>
			<label>&nbsp;</label>
			<a href='javascript:update()'>update</a>
		</div>	
	</fieldset>
</div>